package io.renren.service.impl;

import io.renren.dao.SysUploadDao;
import io.renren.entity.SysUploadEntity;
import io.renren.service.SysUploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("SysUploadService")
public class SysUploadServiceImpl implements SysUploadService {
	@Autowired
	private SysUploadDao sysUploadDao;
	
	@Override
	public SysUploadEntity queryObject(Long id){
		return sysUploadDao.queryObject(id);
	}
	
	@Override
	public List<SysUploadEntity> queryList(Map<String, Object> map){
		return sysUploadDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return sysUploadDao.queryTotal(map);
	}
	
	@Override
	public void save(SysUploadEntity sysOss){
		sysUploadDao.save(sysOss);
	}
	
	@Override
	public void update(SysUploadEntity sysOss){
		sysUploadDao.update(sysOss);
	}
	
	@Override
	public void delete(Long id){
		sysUploadDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		sysUploadDao.deleteBatch(ids);
	}

	public List<SysUploadEntity> queryListByfileId(String file_id) {
		return sysUploadDao.queryListByfileId(file_id);
	}
	public void deleteByfileId(String file_id){
		sysUploadDao.deleteByfileId(file_id);
	}
	
}
